{% load static %}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-3.4.1/css/bootstrap.min.css' %}">
    <style>
        .account {
            width: 400px;
            border: 1px solid #dddddd;
            border-radius: 5px;
            box-shadow: 5px 5px 20px #aaa;

            margin-left: auto;
            margin-right: auto;
            margin-top: 100px;
            padding: 20px 40px;
        }
        .account h2 {
            margin-top: 10px;
            text-align: center;
        }
    </style>
</head>
<body>
<div class="account" id="success" style="display: none">
    <h2>用户激活成功</h2>
    <div style="text-align: center;"><span><a href="/login/" style="color: #4cae4c"><input type="submit" value="前往登录" class="btn btn-primary"></a></span></div>
</div>
<div class="account" id="Token has expired" style="display: none">
    <h2>激活链接已过期</h2>
    <div style="text-align: center;"><span><a href="/register/" style="color: #4cae4c"><input type="submit" value="重新注册" class="btn btn-primary"></a></span></div>
</div>
<div class="account" id="Invalid token" style="display: none">
    <h2>激活链接格式无效</h2>
    <div style="text-align: center;"><span><a href="/register/" style="color: #4cae4c"><input type="submit" value="重新注册" class="btn btn-primary"></a></span></div>
</div>
<div class="account" id="user does not exist" style="display: none">
    <h2>用户不存在</h2>
    <div style="text-align: center;"><span><a href="/register/" style="color: #4cae4c"><input type="submit" value="重新注册" class="btn btn-primary"></a></span></div>
</div>
<div class="account" id="unknown error" style="display: none">
    <h2>激活失败，未知错误</h2>
    <div style="text-align: center;"><span><a href="/register/" style="color: #4cae4c"><input type="submit" value="重新注册" class="btn btn-primary"></a></span></div>
</div>
<script  src="{% static 'Js/js1.txt.js' %}"></script>
<script  src="{% static 'plugins/bootstrap-3.4.1/js/bootstrap.min.js' %}"></script>
<script type="text/javascript" src="{% static 'plugins/bootstrap-3.4.1/js/slide.js' %}"></script>

<script type="text/javascript">
    var status = {{ status }}
    if (status == 1){
        document.getElementById("success").style.display = "block";
    }else if (status == 2){
        document.getElementById("Token has expired").style.display = "block";
    }else if (status == 3){
        document.getElementById("Invalid token").style.display = "block";
    }else if (status == 4){
        document.getElementById("user does not exist").style.display = "block";
    }else{
        document.getElementById("unknown error").style.display = "block";
    }

</script>
</body>
</html>